package swta.crud.model

import net.liftweb.mapper._

class BundleItem extends LongKeyedMapper[BundleItem] with IdPK {
  def getSingleton = BundleItem
  
  object itemId extends MappedLongForeignKey(this, Item)
  object amount extends MappedInt(this)
  object bundleId extends MappedLongForeignKey(this, Bundle)
}

object BundleItem extends BundleItem with LongKeyedMetaMapper[BundleItem] {
  override def dbTableName = "bundle_items"
}